package homework41;

public class Multiply extends AbstractExpression {
    private final AbstractExpression left;
    private final AbstractExpression right;

    public Multiply(AbstractExpression left,AbstractExpression right){
        this.left = left;
        this.right =right;
    }

    @Override
    Integer interpreter(Context contex) {
        return left.interpreter(contex) * right.interpreter(contex);
    }
}
